package cn.jlonely.xyhx.admin.mapper;

import cn.jlonely.xyhx.pojo.vo.ReviewVo;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ReviewMapper {

    /**
     *获取审核信息
     * @return
     */
    List<ReviewVo> getReviewInfo();

    /**
     * 更新审核状态
     * @param id
     * @param judgeStatus
     */
    @Update("UPDATE review_table SET judge_status = #{judgeStatus} WHERE judge_id = #{id}")
    void updateReviewStatus(Integer id, Integer judgeStatus);
}
